<?php 
include("conexion.php");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Perfumeria "Arome de l'Amour"</title>
<style type="text/css">
<!--
.Estilo1 {
	font-size: 18px;
	font-weight: bold;
	color: #000000;
}
.Estilo4 {font-size: 12px; font-weight: bold; }
.Estilo18 {font-size: 14px; font-weight: bold; color: #000000; font-style: italic; }
body {
	background-image: url(img/So2.png);
	background-repeat: no-repeat;
}
.Estilo19 {font-size: 16px; font-weight: bold; color: #FFFFFF; }
.Estilo21 {color: #FFFFFF; font-weight: bold;}
.Estilo22 {color: #000000}
-->
</style>
</head>
<body>
<div align="center">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="111" height="40">
    <param name="movie" value="Inicio.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed src="Inicio.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="111" height="40" bgcolor="#FFFFFF"></embed>
  </object>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="111" height="40">
    <param name="movie" value="Clientes.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed src="Clientes.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="111" height="40" bgcolor="#FFFFFF"></embed>
  </object>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="111" height="40">
    <param name="BGCOLOR" value="#FFFFFF" />
    <param name="movie" value="Productos.swf" />
    <param name="quality" value="high" />
    <embed src="Productos.swf" width="111" height="40" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#FFFFFF" ></embed>
  </object>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="111" height="40">
    <param name="movie" value="Catalogo.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed src="Catalogo.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="111" height="40" bgcolor="#FFFFFF"></embed>
  </object>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="108" height="40">
    <param name="movie" value="nuestraempresa.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed src="nuestraempresa.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="108" height="40" bgcolor="#FFFFFF"></embed>
  </object>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="108" height="40">
    <param name="movie" value="resgistrarse.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed src="resgistrarse.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="108" height="40" bgcolor="#FFFFFF"></embed>
  </object>
</div>
<p align="right"><img src="img/anigif.gif" width="560" height="60" align="middle" /></p>
<p>&nbsp;</p>
<table width="864" style="border:1px" align="right">
  <tr>
    <td colspan="6" bgcolor="#CCCCCC"><div align="center" class="Estilo1">| TABLA | PRODUCTOS | BUSCADOR |</div></td>
  </tr>
  <tr>
    <td height="49" colspan="5" class="Estilo4"><div align="right" class="Estilo19 Estilo22">
      <div align="right"><img src="img/search_2.png" width="18" height="20" align="baseline" /> Buscar: </div>
    </div></td>
    <td height="49" class="Estilo4" background="./img/search.png"><form action="buscar_productos.php" method="post" name="form1" id="form1">
        <div align="center">
          <input name="p" type="text" id="p" />
        </div>
        <label> </label>
        <div align="center">
          <input type="submit" name="Submit" value="Buscar" />
        </div>
    </form>
    <label></label></td>
  </tr>
  <tr class="Estilo4">
    <?php /*?><td width="29" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo21">ID</div></td><?php */?>
    <td width="138" colspan="-6" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo21">IMAGEN</div></td>
    <td width="153" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo21">NOMBRE</div></td>
    <td width="188" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo21">DESCRIPCION</div></td>
    <td width="78" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo21">PRECIO</div></td>
    <td width="83" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo21">CANTIDAD</div></td>
    <?php /*?><td width="99" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo21">FECHA</div></td><?php */?>
    <td width="159" bgcolor="#000000" class="Estilo4"><div align="center" class="Estilo21">
      <div align="center">AGREGARLO</div>
    </div></td>
  </tr>
  <!-- DECLARACION DE FILAS POR CADA REGUSTRO EN LA TABLA PRODUCTOS-->
  <?php 
$consulta=mysql_query("select * from productos",$conexion);
while($mostrar=mysql_fetch_array($consulta)){
//$id=$mostra4['id']; PONER VARIABLES POR CADA ELEMENTO DEL ARREGLO "MOSTRAR"
$agregarlo="<a href='carrito.php?id=$mostrar[id]'>AGREGARLO</a>";
$color=$mostrar['id'];
	if($color %2 ==1){
		$color="#9933CC";}
	else{
		$color="#CCFF00";}
?>
  <tr class="Estilo4"> <?php /*?>bgcolor="<?php echo $color;?>"><?php */?>
    <?php /*?><td width="29" class="Estilo4"><div align="center" class="Estilo10 Estilo18"><?php echo $mostrar['id']?></div></td><?php */?>
    <td width="138" height="20" colspan="-6" class="Estilo4"><div align="center" class="Estilo18"><?php echo"<img src='./img/fondo".$mostrar['id'].".jpg'/>";?></div></td>
    <td width="153" class="Estilo4"><div align="center" class="Estilo18"><?php echo $mostrar['nombre_producto']?></div></td>
    <td width="188" class="Estilo4"><div align="center" class="Estilo18"><?php echo $mostrar['descripcion_producto']?></div></td>
    <td width="78" class="Estilo4"><div align="center" class="Estilo18"><?php echo $mostrar['precio']?></div></td>
    <td width="83" class="Estilo4"><div align="center" class="Estilo18"><?php echo $mostrar['cantidad_producto']?></div></td>
    <?php /*?><td width="99" class="Estilo4"><div align="center" class="Estilo18"><?php echo $mostrar['fecha_introduccion']?></div></td><?php */?>
    <td width="159" class="Estilo4"><div align="center" class="Estilo18">
      <div align="center"><?php echo $agregarlo; ?></div>
    </div></td>
  </tr>
  <?php 
  }
  ?>
</table>
</body>
</html>